package com.roc.newPage;

import java.util.List;

import com.roc.dao.DaoException;
import com.roc.page.BaseSearchCondition;

public interface IPageDao {
    List<Object> findAll(BaseSearchCondition searchCondition,int startRow,int maxRow)throws DaoException;
    //hql 分页查询
    List<Object> findAll(String hql,Object[] params,int startRow,int maxRow)throws DaoException;
    
	int count(BaseSearchCondition searchCondition)throws DaoException;
	List<Object> findAllSql(BaseSearchCondition searchCondition,int startRow,int maxRow)throws DaoException;
	
	
	int countSql(BaseSearchCondition searchCondition)throws DaoException;
	
	public List<Object> findAllByParams(String sql,List<Object> params, int startRow, int maxRow) throws DaoException;
	
	public int countByParams(String sql,List<Object> params) throws DaoException;
	
	Object createQueryUniqueResult(String hql, Object[] param) throws DaoException;//根据参数和hql 查询对象
	
	Object findObj(String sql,Object[] parmas) throws DaoException; //根据参数 和sql查询对象
	
	List<Object> queryAll(String hql,Object[] param) throws DaoException;//根据参数和hql 查询集合
	
	List<Object> querySqlAll(String sql, Object[] parmas) throws DaoException;//根据参数和sql 查询集合
	
}
